<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
  </head>

  <body>
  <div>
    
    <div ng-include="headerInclude"></div>
    <div ng-controller="Apiman.OrgClientsController" class="page container-pf-nav-pf-vertical container-fluid" data-field="page" ng-cloak="" ng-show="pageState == 'loaded'">
      <div ng-include="'plugins/api-manager/html/org/org_bc.include'"></div>
      <div class="row">
        <div ng-include="'plugins/api-manager/html/org/org_entity.include'"></div>
        <!-- Center Content -->
        <div class="col-md-8">
          <div class="apiman-entitytabs">
            <div ng-include="'plugins/api-manager/html/org/org_tabs.include'"></div>
            <div id="entitytabsContent" class="tab-content">

              <!-- Client Tab Content -->
              <div class="tab-pane active" id="tab-clients">
                <div class="apiman-filters apiman-clients-filters">
                  <div>
                    <apiman-search-box id="clients-filter" apiman-i18n-key="filter-org-clients" function="filterClients" placeholder="Filter by client app name..." />
                  </div>
                  <a apiman-permission="clientEdit" data-field="toNewClient" href="{{ pluginName }}/new-client" class="btn btn-primary pull-right" apiman-i18n-key="new-client">New Client App</a>
                </div>
                <div class="clearfix"></div>
                <!-- The list of clients in the org -->
                <div class="apiman-clients" data-field="clients">

                  <div class="apiman-no-content container-fluid" ng-hide="clients.length > 0">
                    <div class="row">
                      <div class="col-md-9">
                        <p class="apiman-no-entities-description" apiman-i18n-key="no-clients-found-for-org">No client apps have been created in this organization yet. Create a client app using the <strong>New Client</strong> button.</p>
                      </div>
                      <div class="col-md-3">
                        <div class="apiman-no-entities-arrow"></div>
                      </div>
                    </div>
                  </div>

                  <div class="apiman-no-content container-fluid" ng-show="clients.length > 0 && filteredClients.length == 0">
                    <div class="row">
                      <div class="col-md-12">
                        <p class="apiman-no-entities-description" apiman-i18n-key="no-clients-found-for-filter">No Client Apps found matching your filter criteria - please try searching for something different.</p>
                      </div>
                    </div>
                  </div>

                  <div class="container-fluid apiman-summaryrow" ng-repeat="client in filteredClients">
                    <div class="row">
                      <span class="title"><a href="{{ pluginName }}/orgs/{{org.id}}/clients/{{client.id}}">{{ client.name }}</a></span>
                    </div>
                    <div class="row">
                      <span class="description">{{ client.description }}
                      </span>
                    </div>
                    <hr/>
                  </div>
                </div>
              </div>
              <!-- End Clients Tab Content -->
              
            </div>
          </div>
        </div>
        <!-- /Center Content -->
      </div>
    </div> <!-- /container-pf-nav-pf-vertical container-fluid -->
  </div>
  </body>
</html>
